home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * CALLTCS 0.0.0
- *******************************************************************************
- * INFO calls a function of tcs.library
- * IN \1 name of the function without the "TCS_" prefix
- * registers set as required by the function
- * OUT a6 _TCSBase
- * registers as set by the function
- *******************************************************************************
-
- macro CALLTCS
- movea.l _TCSBase,a6
- jsr (_LVOTCS_\1,a6)
- endm
-
-
-
- *******************************************************************************
- * WTRSTLN 0.0.1
- *******************************************************************************
- * INFO waits for a rasterline to be completely redrawn
- * IN \1 rasterline number
- *******************************************************************************
-
- macro WTRSTLN
- movem.l d0/a0,-(sp)
- lea.l $dff004,a0
- .wt0\@ move.l (a0),d0
- andi.l #$1ff00,d0
- cmpi.l #(\1)<<8,d0
- bne.s .wt0\@
- .wt1\@ move.l (a0),d0
- andi.l #$1ff00,d0
- cmpi.l #(((\1)<<8)+$100),d0
- bne.s .wt1\@
- movem.l (sp)+,d0/a0
- endm
-
-
-
- *******************************************************************************
- * WTLMB & WTRMB 0.0.0
- *******************************************************************************
- * INFO waits for left/right mouse button to be pressed
- *******************************************************************************
-
- macro WTLMB
- .wt\@ btst.b #6,$bfe001
- bne.s .wt\@
- endm
-
- macro WTRMB
- .wt\@ btst.b #2,$dff016
- bne.s .wt\@
- endm
-